/*********************************************************
 *  Copyright (c) 2011 by Web Information Systems (WIS) Group, 
 *  Delft University of Technology.
 *  Qi Gao, http://wis.ewi.tudelft.nl/index.php/home-qi-gao
 *  
 *  Some rights reserved.
 *
 *  Contact: q.gao@tudelft.nl
 *
 **********************************************************/
package org.persweb.genius.util;

import java.util.Iterator;
import java.util.Map;

import org.persweb.genius.model.Concept;
import org.persweb.genius.model.Profile;

/**
 * @author Qi Gao <a href="mailto:q.gao@tudelft.nl">q.gao@tudelft.nl</a>
 * @version created on Oct 7, 2011 11:54:16 AM
 */
public class ProfileUtil {

	public static void printInterestProfile(Profile profile) {
		Map<Concept, Double> interestProfile = profile.getInterestsProfile();
		
		Iterator<Concept> it = interestProfile.keySet().iterator();

		while (it.hasNext()) {
			Concept key = it.next();
			if(key.getUri()!=null) {
				System.out.println("[" + key.getName() + " , " + interestProfile.get(key)
						+ "]; URI [" + key.getUri() + "]; ");
			} else {
				System.out.println("[" + key.getName() + " , " + interestProfile.get(key)
						+ "];" );
			}
		}
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}
